﻿using App.Business.Implementation.Party;
using App.Business.Party;
using Castle.MicroKernel.Registration;
using RrslLite.Net.Attributes;
using RrslLite.Net.Ioc;

namespace WcfService1
{
    public static class ComponentRegistration
    {
        public static void Register()
        {
            IocHelper.ContainerInstance.Register(Component.For<ICompanyService>().Named("CompanyService").ImplementedBy<CompanyService>());
            IocHelper.ContainerInstance.Register(Component.For<IPersonFacade>().Named("PersonFacade").ImplementedBy<PersonFacade>());
            IocHelper.ContainerInstance.Register(Component.For<ICountryFacade>().Named("CountryFacade").ImplementedBy<CountryFacade>());
            
            KnownTypeProvider.RegisterModelDomainNamespace("App.Business.Entities");
        }
    }
}
